package me.zhengjie.modules.management.repository;

import com.baomidou.dynamic.datasource.annotation.DS;
import me.zhengjie.modules.management.domain.RoomDeptView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;

/**
 * @website https://docs.auauz.net
 * @Description:
 * @Auther: chao.ji
 * @Date: 2020/12/22
 */
@DS("other")
public interface RoomDeptViewRepository extends JpaRepository<RoomDeptView,Integer> {
    @Query(value = "select * from room_dept_view",nativeQuery = true)
    List<RoomDeptView> findA();

}
